import { IFormConfig } from '@/base-ui/form/src/types'
interface IDialog {
  formConfig: IFormConfig
  colLayout?: any
  title: string
}
export const useDialogConfig = (): IDialog => {
  return {
    formConfig: {
      labelWidth: '80px',
      labelPosition: 'right',
      formItem: [
        {
          field: 'name',
          type: 'input',
          label: '角色名称',
          placeholder: '请输入角色名称'
        },
        {
          field: 'intro',
          type: 'input',
          label: '权限介绍',
          placeholder: '请输入权限介绍'
        }
      ],
      formBtns: false
    },
    colLayout: { span: 24 },
    title: '新建角色'
  }
}
